package net.tautausan.plist
{
   public dynamic class PDict extends PlistElement
   {
       
      
      public var keys:Array;
      
      public function PDict(param1:XML)
      {
         this.keys = [];
         super(param1);
      }
      
      override public function get object() : *
      {
         var _loc1_:Object = null;
         var _loc2_:XML = null;
         var _loc3_:XML = null;
         if(!data)
         {
            _loc1_ = new Object();
            for each(_loc3_ in x.*)
            {
               if(_loc3_.name() == "key")
               {
                  _loc2_ = _loc3_;
               }
               else if(_loc2_)
               {
                  _loc1_[_loc2_] = ParseUtils.valueFromXML(_loc3_);
                  this.keys.push(_loc2_);
               }
            }
            return _loc1_;
         }
         return data;
      }
   }
}
